import NewsEdit from "@/views/manage/news/NewsEdit.vue";
import LoginHome from "@/views/manage/login/LoginHome.vue";
// import TestView from "@/views/manage/news/TestView.vue";
import Index from "@/views/manage/index.vue"
import AttractionsList from "@/views/manage/attractions/AttractionsList.vue";
import FeedbackList from "@/views/manage/contact/FeedbackList.vue";
import IntroduceList from "@/views/manage/introduce/IntroduceList.vue";
import NewsList from "@/views/manage/news/NewsList.vue";
import ProductList from "@/views/manage/product/ProductList.vue";
import ContractInfo from "@/views/manage/contact/ContractInfo.vue";
import BackgroundInfo from "@/views/manage/introduce/BackgroundInfo.vue";
import CultureInfo from "@/views/manage/introduce/CultureInfo.vue";
import HistoryInfo from "@/views/manage/introduce/HistoryInfo.vue";
import NoticeList from "@/views/manage/news/NoticeList.vue";
import TrendsList from "@/views/manage/news/TrendsList.vue";
import UserLogin from "@/views/manage/login/UserLogin.vue";
import UserIndex from "@/views/manage/userIndex.vue";
import ProductExamine from "@/views/manage/product/ProductExamine.vue";
import UserList from "@/views/manage/user/UserList.vue";
import ProductOrderList from "@/views/manage/productOrder/ProductOrderList.vue";
export default [
  {
    path:'/views/manage/news/newsEdit',
    name:'NewsEdit',
    component: NewsEdit
  },
  {
    path:'/login',
    name:'LoginHome',
    component: LoginHome
  },
  {
    path: '/views/manage/login/loginHome',
    name:'UserLogin',
    component: UserLogin
  },
  // {
  //   path:'/views/manage/news/test',
  //   name:'Test',
  //   component: TestView
  // },
  {
    path: '/views/manage/userIndex',
    name: "UserIndex",
    component: UserIndex,
    children: [
      {
          path: '/views/manage/product/list',
        name: '特色产品管理',
        component: ProductList,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/views/manage/productOrder/list',
        name: '特色产品订单管理',
        component: ProductOrderList,
        meta: {
          requireAuth: true
        }
      },
    ]
  },
  {
    path:'/views/manage/index',
    name:'Index',
    component: Index,
    iconCls: 'el-icon-tickets',
    children:[
      {
        path: '/views/manage/attractions/list',
        name: '周边景点管理',
        component: AttractionsList,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/views/manage/contract/list',
        name: '在线留言管理',
        component: FeedbackList,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/views/manage/contract/info',
        name: '联系我们管理',
        component: ContractInfo,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/views/manage/introduce/list',
        name: '货道信息管理',
        component: IntroduceList,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/views/manage/introduce/backgroundInfo',
        name: '背景管理',
        component: BackgroundInfo,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/views/manage/introduce/cultureInfo',
        name: '文化管理',
        component: CultureInfo,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/views/manage/introduce/historyInfo',
        name: '历史管理',
        component: HistoryInfo,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/views/manage/news/list',
        name: '新闻资讯管理',
        component: NewsList,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/views/manage/news/noticeList',
        name: '通知公告管理',
        component: NoticeList,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/views/manage/news/trendsList',
        name: '最新动态管理',
        component: TrendsList,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/views/manage/product/productExamine',
        name: '特色产品管理',
        component: ProductExamine,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/views/manage/user/list',
        name: '用户管理',
        component: UserList,
        meta: {
          requireAuth: true
        }
      },
    ]
  }
]
